package com.glsc.ngateway.common.api.wordconver.feign;

import com.glsc.ngateway.common.api.common.config.FeignMultipartSupportConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xuchang
 */
@FeignClient(value = "eureka-client-wordconver", configuration = FeignMultipartSupportConfig.class)
public interface IFeignWordconverService {

    @RequestMapping(method = RequestMethod.POST, value = "/gatewayWordConver/word/getPdfFromOaUrl")
    ResponseEntity<byte[]> getPdfFromOaUrl(@RequestParam(value = "srcPath") String srcPath, @RequestParam(value = "sessionId") String sessionId);
}
